package com.lyz.objectd1;

/**
 * @ClassName GameDemo
 * @Description 测试
 * @Author 2214361854
 * @Date 2022/2/18 17:56
 * @Version 1.0
 */
public class Test {
    public static void main(String[] args) {
        System.out.println("=======抽象方法重写案例========");
        Tiger tiger = new Tiger();
        tiger.run();
        Dog dog = new Dog();
        dog.run();
        System.out.println("=======会员卡案例========");
        GoldCard goldCard = new GoldCard();
        goldCard.setMoney(10000);
        goldCard.setName("小王");
        goldCard.pay(300);
    }
}
